<!DOCTYPE html>
<html>
<head>
	<include file="Public:common-css" />
	<link type="text/css" rel="stylesheet" href="__ICSS__/member.css" />
	<link href="__ICSS__/validform/validform.css" rel="stylesheet">
</head>
<body>
<div class="container">
<!-------------------------header--------------------------------->
<include file="Public:header" />
<!--------------------------content------------------------------->
	<div class="clr"></div>
    <div class="content">
    	<include file="Public:member-left" />
        <div class="member-right">
        	<div class="member-breadcrumbs">
            	<a href="__ROOT__">首页</a>
                &gt;
                <span>个人中心</span>
                &gt;
                <span>密码修改</span>
            </div>
            <div class="clr"></div>
          	<div class="m-box">
            	<div class="member-content">
					<div class="member-setpaypwd-box">
						<div class="member-modifypwd-message">温馨提示：密码由6到20位大小写字母、数字组合！</div>
						<form action="__URL__/updatePassword" method="post" class="form">
							<div class="member-form-item">
								<em>旧密码</em>
								<div class="member-item">
									<input type="password" name="oldpassword" class="member-form-input" placeholder="请输入旧密码(6-20位英文数字)" datatype="p6-20" nullmsg="请输入旧密码(6-20位英文数字)" errormsg="请输入旧密码(6-20位英文数字)"/>
									<span class="Validform_checktip"></span>
								</div>
							</div>
							<div class="member-form-item">
								<em>新密码</em>
								<div class="member-item">
									<input type="password" name="password" class="member-form-input" placeholder="请输入新密码(6-20位英文数字)" datatype="p6-20" nullmsg="请输入新密码(6-20位英文数字)" errormsg="请输入新密码(6-20位英文数字)"/>
									<span class="Validform_checktip"></span>
								</div>
							</div>
							<div class="member-form-item">
								<em>确认密码</em>
								<div class="member-item">
									<input type="password" name="password2" recheck="password" class="member-form-input" placeholder="请再次确认密码" datatype="*" nullmsg="请再次确认密码"/>
									<span class="Validform_checktip"></span>
								</div>
							</div>
							<div class="member-form-item">
								<em></em>
								<div class="member-item">
									<input type="submit" class="member-form-submit" value="确认"/>
									<button type="reset" id="reset2" class="hide btn btn-success btn-block">重置</button>
								</div>
							</div>
						</form>
					</div>
				</div>
            </div>
        </div>
    </div>
    <div class="clr"></div>
<!--------------------------content-end--------------------------->
    <include file="Public:footer" />
</div>

</body>
<include file="Public:common-js" />
<script src="__IJS__/Validform_v5.3.2_min.js"></script>
<script type="text/javascript">
$(function(){
	$("#reset2").click();
	var form = $(".form").Validform({
		tiptype:4,
		ajaxPost:true,
		datatype:{
			"p6-20":/^[a-z0-9A-Z]{6,20}$/
		},
		callback:function(data){
			if(data.status == 1) {
				layer.msg(data.info);
				window.location.href = '__ROOT__/Login';
			}else{
				layer.msg(data.info);
			}
		}
	});
})
</script>
</html>
